package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentArray {
    public static void main(String[] args) {
        //int a[] = new int[10];
        Student[] sr = new Student[10];
        Jiaowuchu j = new Jiaowuchu();
        for (int i = 0; i < sr.length; i++) {
            sr[i] = new Student();
            sr[i].name = "刘" + i;
            sr[i].java = 80 + i;
            sr[i].db = (int) (Math.random() * 100);
            sr[i].c = (int) (Math.random() * 100);
            sr[i].show();
            //System.out.println(sr[i]);
            // sr[i].show();
        }
        j.increase(sr);
        System.out.println("涨分后：");
        for (Student s : sr) {
            s.show();
        }
    }
}
